package com.example.springboot.service;

import com.example.springboot.controller.dto.ChildDTO;
import com.example.springboot.controller.request.BaseRequest;
import com.example.springboot.entity.Child;
import com.example.springboot.entity.Person;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author danqihao
 */

@Mapper
public interface IPersonService {
    int insertChildren(List<ChildDTO> children);

    public void addPerson(Person person);

    List<Child> getPersonList();

    List<Person> listByCondition(BaseRequest baseRequest);

//    PageInfo<Book> page(BaseRequest baseRequest);
//    List<Child> listByCondition(BaseRequest baseRequest);

//    List<Book> listByCondition(BaseRequest baseRequest);

    // 批量添加孩子
//    int insertChildren(List<ChildDTO> children);
}